package com.yitao.cms.utils;

import org.apache.commons.lang.StringUtils;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

/**
 * @Author: wwl
 * @Date: 2019/12/3 18:09
 * @Description:数据处理
 */
public class DataUtils {

    public static String Decoder(String data){
        try {
            if (StringUtils.isNotBlank(data)){
                String  productName = URLDecoder.decode( data, "UTF-8");
                return productName;
            }
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return data;
    }
}
